/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package test;

import gui.BarGraphPanel;
import gui.BarGraphPanel;
import java.util.ArrayList;
import javax.swing.JFrame;

/**
 *
 * @author Scuba Kay
 */
public class RunBarGraph {
	
	public static void main(String[] args){
		JFrame frame = new JFrame("BarGraph");
		frame.setSize(600, 480);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setLocationByPlatform(true);
		BarGraphPanel bar = new BarGraphPanel();
		ArrayList<String[]> info = new ArrayList();
		
		String[] string;
		
//		for(int i=0; i<15; i++){
//			string = new String[]{"Henk " + (i+1) + "", "" + (i+1) + ""};
//			info.add(string);
//		}
		string = new String[]{"Henk", "4"};
		info.add(string);
		string = new String[]{"Piet", "1"};
		info.add(string);
		string = new String[]{"Peter", "1"};
		info.add(string);
		string = new String[]{"Klaas", "2"};
		info.add(string);
		string = new String[]{"Gerard", "3"};
		info.add(string);
		string = new String[]{"Gijs", "4"};
		info.add(string);
		string = new String[]{"Harry", "2"};
		info.add(string);
		string = new String[]{"Klaas", "3"};
		info.add(string);
		string = new String[]{"Gerard", "1"};
		info.add(string);
		string = new String[]{"Gijs", "3"};
		info.add(string);
		string = new String[]{"Harry", "1"};
		info.add(string);
			
				
		bar.setManagementInfo(info);
		frame.add(bar);
		frame.setVisible(true);
	}
}
